import 'package:library_base/entities/generated/json/base/json_convert_content.dart';
import 'package:library_base/entities/reason_entity.dart';

ReasonEntity $ReasonEntityFromJson(Map<String, dynamic> json) {
  final ReasonEntity shipperEntity = ReasonEntity();

  final String? dictType = jsonConvert.convert<String>(json['dictType']);
  if (dictType != null) {
    shipperEntity.dictType = dictType;
  }
  final String? value = jsonConvert.convert<String>(json['value']);
  if (value != null) {
    shipperEntity.value = value;
  }
  final String? label = jsonConvert.convert<String>(json['label']);
  if (label != null) {
    shipperEntity.label = label;
  }
  final String? colorType = jsonConvert.convert<String>(json['colorType']);
  if (colorType != null) {
    shipperEntity.colorType = colorType;
  }
  final String? cssClass = jsonConvert.convert<String>(json['cssClass']);
  if (cssClass != null) {
    shipperEntity.cssClass = cssClass;
  }
  return shipperEntity;
}

Map<String, dynamic> $ReasonEntityToJson(ReasonEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['dictType'] = entity.dictType;
  data['value'] = entity.value;
  data['label'] = entity.label;
  data['colorType'] = entity.colorType;
  data['cssClass'] = entity.cssClass;
  return data;
}

